package com.hotel.reservation.dao;

import com.hotel.reservation.po.RoomPo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @version 0.1
 * @Author: oliver chen
 * @Description:
 * @Date:Create：in 2021/7/27 11:52
 * @Modified By：
 */
@Mapper
public interface RoomDao {
    List<RoomPo> selectAll();//查看所有房间
    RoomPo selectByRoomId(String roomId);//查看单个房间的信息
    List<RoomPo> selectByRoomState(int roomState);//查询可入住的房间
    List<RoomPo> selectByRoomType(String roomType);//按类型查询房间
    List<RoomPo> selectEnableRooms(int roomState,String roomType);//查询可入住的房间
    List<RoomPo> selectAllRoomByPage(Map<String,Object> map);//分页查询
    Integer insertARoom(RoomPo roomPo);//添加一个房间
    Integer alterARoom(RoomPo roomPo);//修改房间信息
    Integer deleteARoom(String roomId);//删除一个
    Integer deleteRooms(List<String> roomIds);//删除多个

}
